// To parse this JSON data, do
//
//     final lzHotCakesProductModel = lzHotCakesProductModelFromMap(jsonString);

import 'dart:convert';

LzHotCakesProductModel lzHotCakesProductModelFromMap(String str) => LzHotCakesProductModel.fromMap(json.decode(str));

String lzHotCakesProductModelToMap(LzHotCakesProductModel data) => json.encode(data.toMap());

class LzHotCakesProductModel {
    LzHotCakesProductModel({
        this.id,
        this.name,
        this.type,
        this.typeName,
        this.imgUrl,
        this.inPrice,
        this.outPrice,
        this.isReBuy,
        this.groupSpecType,
        this.hadShopCt,
        this.commodityState,
        this.giftRemark,
    });

    String id;
    String name;
    String type;
    String typeName;
    String imgUrl;
    String inPrice;
    String outPrice;
    String isReBuy;
    String groupSpecType;
    String hadShopCt;
    String commodityState;
    String giftRemark;

    factory LzHotCakesProductModel.fromMap(Map<String, dynamic> json) => LzHotCakesProductModel(
        id: json["id"] == null ? null : json["id"],
        name: json["name"] == null ? null : json["name"],
        type: json["type"] == null ? null : json["type"],
        typeName: json["typeName"] == null ? null : json["typeName"],
        imgUrl: json["imgUrl"] == null ? null : json["imgUrl"],
        inPrice: json["inPrice"] == null ? null : json["inPrice"],
        outPrice: json["outPrice"] == null ? null : json["outPrice"],
        isReBuy: json["isReBuy"] == null ? null : json["isReBuy"],
        groupSpecType: json["groupSpecType"] == null ? null : json["groupSpecType"],
        hadShopCt: json["hadShopCt"] == null ? null : json["hadShopCt"],
        commodityState: json["commodityState"] == null ? null : json["commodityState"],
        giftRemark: json["giftRemark"] == null ? null : json["giftRemark"],
    );

    Map<String, dynamic> toMap() => {
        "id": id == null ? null : id,
        "name": name == null ? null : name,
        "type": type == null ? null : type,
        "typeName": typeName == null ? null : typeName,
        "imgUrl": imgUrl == null ? null : imgUrl,
        "inPrice": inPrice == null ? null : inPrice,
        "outPrice": outPrice == null ? null : outPrice,
        "isReBuy": isReBuy == null ? null : isReBuy,
        "groupSpecType": groupSpecType == null ? null : groupSpecType,
        "hadShopCt": hadShopCt == null ? null : hadShopCt,
        "commodityState": commodityState == null ? null : commodityState,
        "giftRemark": giftRemark == null ? null : giftRemark,
    };
}
